package gstudio.data;

import java.util.ArrayList;
import java.util.List;

public class Text2Satz {

	public List<String> getSatzList(String text) {

		java.util.List<String> satzList = new ArrayList<String>();
		String out = "";
		for (char c : text.toCharArray()) {
			if (((int) c) == 10 || ((int) c) == 13) {
				out += " ";
				continue;
			}
			out += c;
			if (c == '.') {
				satzList.add(out.trim());
				out = "";
			}
		}

		return satzList;

	}

}
